home *** CD-ROM | disk | FTP | other *** search
- Path: gate.net!pslfl2-13
- From: bhutto@gate.net (William Hutto)
- Newsgroups: comp.lang.c
- Subject: Re: Strcat Doesn't work for this?
- Date: 12 Jan 1996 08:16:23 GMT
- Organization: CyberGate, Inc.
- Message-ID: <4d55cn$228c@news.gate.net>
- References: <Pine.SOL.3.91.960111151925.25068C-100000@lore.cs.purdue.edu>
- NNTP-Posting-Host: pslfl2-13.gate.net
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <Pine.SOL.3.91.960111151925.25068C-100000@lore.cs.purdue.edu>,
- ** Craig Cook ** <cookca@cs.purdue.edu> wrote:
- >Here is my excerpt of code in question:
- >
- >
- >Putword(int w, char *imageChar)
- >{
- > w = (w & 0xff);
- > strcat( imageChar, (const char *)w );
-
- Given an example:
- w==0x0020
- w=(w & 0xff);
- w==0x0020;
-
- strcat( imgChar, (const char *)0x20);
-
- In this instance you're appending the string at address 0x20 to imgChar. Is
- that what you wanted?
-
- >
- >}
- >
- >Why does it core dump? It should work right?
- >
- >Craig
- > ,,,
- > (o o)
- >-------------=={{ cookca@.cs.purdue.edu}}==-----------ooO-(_)-Ooo-------
- >
-
-
- "Whatcha got on?...Your mind?"
-